from django.contrib.auth.models import Group
from rest_framework import serializers

from users.models import User

# 1,管理员序列化器
class AdminPermissionSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"


#组序列化器
class GroupPermissionSerializer(serializers.ModelSerializer):
    class Meta:
        model=Group
        fields=("id","name")
